<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <title>京伦内容管理系统</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="/mycms/Public/bootstrap/css/bootstrap.min.css" />
    <script type="text/javascript" src="/mycms/Public/bootstrap/js/jquery.min.js"></script>
    <script type="text/javascript" src="/mycms/Public/bootstrap/js/bootstrap.min.js"></script>
    <style type="text/css">
        body {
            padding-top: 50px;
        }
        .starter-template {
            padding: 40px 15px;
            text-align: center;
        }

        /*
         * Global add-ons
        */

        .sub-header {
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }

        /*
         * Top navigation
         * Hide default border to remove 1px line.
        */
        .navbar-fixed-top {
            border: 0;
        }

        /*
         * Sidebar
        */

        /* Hide for mobile, show later */
        .sidebar {
            display: none;
        }
        @media (min-width: 768px) {
            .sidebar {
                position: fixed;
                top: 51px;
                bottom: 0;
                left: 0;
                z-index: 1000;
                display: block;
                padding: 20px;
                overflow-x: hidden;
                overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
                background-color: #f5f5f5;
                border-right: 1px solid #eee;
            }
        }

        /* Sidebar navigation */
        .nav-sidebar {
            margin-right: -21px; /* 20px padding + 1px border */
            margin-bottom: 20px;
            margin-left: -20px;
        }
        .nav-sidebar > li > a {
            padding-right: 20px;
            padding-left: 20px;
        }
        .nav-sidebar > .active > a,
        .nav-sidebar > .active > a:hover,
        .nav-sidebar > .active > a:focus {
            color: #fff;
            background-color: #428bca;
        }


        /*
         * Main content
        */

        .main {
            padding: 20px;
        }
        @media (min-width: 768px) {
            .main {
                padding-right: 40px;
                padding-left: 40px;
            }
        }
        .main .page-header {
            margin-top: 0;
        }


        /*
         * Placeholder dashboard ideas
        */

        .placeholders {
            margin-bottom: 30px;
            text-align: center;
        }
        .placeholders h4 {
            margin-bottom: 0;
        }
        .placeholder {
            margin-bottom: 20px;
        }
        .placeholder img {
            display: inline-block;
            border-radius: 50%;
        }
    </style>
</head>
<body screen_capture_injected="true" ryt12591="1">
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">Project name</a>
        </div>
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li class="active"><a href="<?php echo U('Index/index');?>">Home</a></li>
                <li><a href="<?php echo U('Arctype/index');?>">栏目管理</a></li>
                <li><a href="<?php echo U('Content/index');?>">内容管理</a></li>
                <li><a href="<?php echo U('Model/index');?>">模型管理</a></li>
                <li><a href="<?php echo U('User/index');?>">用户管理</a></li>
            </ul>
        </div><!--/.nav-collapse -->
    </div>
</div>
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
    <ul class="nav nav-sidebar">
        <li class="active"><a href="<?php echo U('Model/index');?>">模型管理</a></li>
        <li><a href="#">Reports</a></li>
        <li><a href="#">Analytics</a></li>
        <li><a href="#">Export</a></li>
    </ul>
    <ul class="nav nav-sidebar">
        <li><a href="">Nav item</a></li>
        <li><a href="">Nav item again</a></li>
        <li><a href="">One more nav</a></li>
        <li><a href="">Another nav item</a></li>
        <li><a href="">More navigation</a></li>
    </ul>
    <ul class="nav nav-sidebar">
        <li><a href="">Nav item again</a></li>
        <li><a href="">One more nav</a></li>
        <li><a href="">Another nav item</a></li>
    </ul>
</div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <div class="page-header"><a href="<?php echo U(Index/index);?>">Home</a>-><a href="">模型管理</a></div>
            <div class="row placeholders">
                <div class="col-xs-6 col-sm-3 placeholder">
                    <img data-src="holder.js/200x200/auto/sky" class="img-responsive" alt="Generic placeholder thumbnail">
                    <h4>Label</h4>
                    <span class="text-muted">Something else</span>
                </div>
                <div class="col-xs-6 col-sm-3 placeholder">
                    <img data-src="holder.js/200x200/auto/vine" class="img-responsive" alt="Generic placeholder thumbnail">
                    <h4>Label</h4>
                    <span class="text-muted">Something else</span>
                </div>
                <div class="col-xs-6 col-sm-3 placeholder">
                    <img data-src="holder.js/200x200/auto/sky" class="img-responsive" alt="Generic placeholder thumbnail">
                    <h4>Label</h4>
                    <span class="text-muted">Something else</span>
                </div>
                <div class="col-xs-6 col-sm-3 placeholder">
                    <img data-src="holder.js/200x200/auto/vine" class="img-responsive" alt="Generic placeholder thumbnail">
                    <h4>Label</h4>
                    <span class="text-muted">Something else</span>
                </div>
            </div>

            <!--表单 -->
            <form action="<?php echo U('model/edit');?>" method='post' class="form-horizontal" role="form">
                <div class="form-group">
                    <label class="col-sm-2 control-label">模型标识</label>
                    <div class="col-sm-4">
                        <input type="text" name="nid" value="<?php echo ($rsArr['nid']); ?>" class="form-control" readonly="readonly"/>
                    </div>
                    <span class="check-tips">表名称(英文字母)</span>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">模型名称</label>
                    <div class="col-sm-4">
                        <input type="text" name="name" value="<?php echo ($rsArr['name']); ?>" class="form-control" />
                    </div>
                    <span class="check-tips">请输入模型名称</span>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">模型类型</label>
                    <div class="col-sm-4">
                        <?php if($rsArr['issystem'] == 1): ?><label class="radio-inline">
                            <input type="radio" name="issystem" id="issystem1" value="1" checked> 系统模型
                        </label>
                            <?php else: ?>
                        <label class="radio-inline">
                            <input type="radio" name="issystem" id="issystem2" value="2" checked> 扩展模型
                        </label><?php endif; ?>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">模型类别</label>
                    <div class="col-sm-4">
                        <?php if($rsArr['type'] == 1): ?><label class="radio-inline">
                            <input type="radio" name="type" id="type1" value="1" checked> 含主表
                        </label>
                        <?php else: ?>
                        <label class="radio-inline">
                            <input type="radio" name="type" id="type2" value="2" checked> 不含主表
                        </label><?php endif; ?>
                    </div>
                    <span class="check-tips">只对系统模型有效</span>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">状态</label>
                    <div class="col-sm-4">
                        <label class="radio-inline">
                            <input type="radio" name="isshow" id="isshow1" value="1" <?php if($rsArr['isshow'] == 1): ?>checked<?php endif; ?>> 启用
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="isshow" id="isshow2" value="0" <?php if($rsArr['isshow'] == 0): ?>checked<?php endif; ?>> 停用
                        </label>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-4">
                        <input type="hidden" name="id" value="<?php echo ($mid); ?>" />
                        <button class="btn btn-primary" type="submit">提交</button>
                        <button class="btn btn-primary" type="button" onclick="history.go(-1)">返回</button>
                    </div>
                </div>
            </form>
            <!--end -->
        </div>
    </div>
</div>
</body>
</html>